<link href="<%=resUrl%>/css/template/tabbar.css" rel="stylesheet" type="text/css" />
<% tabbarName = typeof(tabbarName) != 'undefined' ? tabbarName : ''%>
<div class="weui-tabbar">
    <a href="javascript:visitUrl('/')" class="weui-tabbar__item <%if(tabbarName == 'index'){%>weui-bar__item--on<%}%>">
        <div class="weui-tabbar__icon">
            <i class="iconfont icon-zhuye"></i>
        </div>
        <p class="weui-tabbar__label">首页</p>
    </a>
    <a href="javascript:visitUrl('/shop/index')" class="weui-tabbar__item <%if(tabbarName == 'shop'){%>weui-bar__item--on<%}%>">
        <div class="weui-tabbar__icon">
            <i class="iconfont icon-jishi"></i>
        </div>
        <p class="weui-tabbar__label">店铺</p>
    </a>
    <a href="javascript:visitUrl('/release')" class="weui-tabbar__item <%if(tabbarName == 'send'){%>weui-bar__item--on<%}%>">
        <div class="weui-tabbar__icon">
            <i class="iconfont icon-fabu"></i>
        </div>
        <p class="weui-tabbar__label">发布</p>
    </a>
    <a href="javascript:visitUrl('/tpl_chat')" class="weui-tabbar__item <%if(tabbarName == 'msg'){%>weui-bar__item--on<%}%>">
        <span class="weui-badge" id="chatNoReadCount" style="position: absolute;top: -.4em;right: 1em;">0</span>
        <div class="weui-tabbar__icon">
            <i class="iconfont icon-xiaoxi"></i>
        </div>
        <p class="weui-tabbar__label">消息</p>
    </a>
    <a href="javascript:visitUrl('/my')" class="weui-tabbar__item <%if(tabbarName == 'my'){%>weui-bar__item--on<%}%>">
        <div class="weui-tabbar__icon">
            <i class="iconfont icon-wode"></i>
        </div>
        <p class="weui-tabbar__label">我的</p>
    </a>
</div>
<script type="text/javascript" src="<%=resUrl%>/js/template/tabbar.js"></script>